package com.gonsin.gview.logic.model;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.gonsin.gview.model.GBoardModel;
import com.gonsin.gview.model.GButtonModel;
import com.gonsin.i18n.logic.T;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 该类主要用于设置viewName的时候，防止对应的view尚未初始化而使用
 * 在GView完成初始化的最后阶段，做一次全盘检查，查询对应的view
 */
@Data
public class GFutureBoardModel extends GBoardModel {

    @ApiModelProperty("页面类型")
    private String boardType;
    {
        this.setBoardType("future");
    }

    private String viewName;

    @Override
    public GBoardModel tClone() {
        GFutureBoardModel model = new GFutureBoardModel();
        BeanUtil.copyProperties(this, model, CopyOptions.create().setIgnoreNullValue(true));
        return model;
    }
}
